package com.bw.lyc.mvp.view.people.adapter;

import android.widget.ImageView;

import com.bw.lyc.R;
import com.bw.lyc.mvp.model.entity.UserFollowEntity;
import com.bw.lyc.network.LoadImage;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class UserFollowAdapter extends BaseQuickAdapter<UserFollowEntity.Values, BaseViewHolder> {
    public UserFollowAdapter() {
        super(R.layout.item_follow_head);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, UserFollowEntity.Values values) {
        baseViewHolder.setText(R.id.follow_item_tv,values.author_name);
        ImageView imageView = baseViewHolder.getView(R.id.follow_item_img1);
        LoadImage.loadCircleImg(values.author_img,imageView);
    }
}
